<HTML>
<BODY>
<PRE>
<!-- Manpage converted by man2html 3.0.1 -->

<B><A HREF="STRSTR.html">STRSTR(3)</A></B>	       FreeBSD Library Functions Manual 	     <B><A HREF="STRSTR.html">STRSTR(3)</A></B>


</PRE>
<H2>NAME</H2><PRE>
     <B>strstr</B> - locate a substring in a string


</PRE>
<H2>SYNOPSIS</H2><PRE>
     <B>#include</B> <B>&lt;string.h&gt;</B>

     <I>char</I> <I>*</I>
     <B>strstr</B>(<I>const</I> <I>char</I> <I>*big</I>, <I>const</I> <I>char</I> <I>*little</I>)


</PRE>
<H2>DESCRIPTION</H2><PRE>
     The <B>strstr</B>() function locates the first occurrence of the null-terminated
     string <I>little</I> in the null-terminated string <I>big</I>. If <I>little</I> is the empty
     string, <B>strstr</B>() returns <I>big</I>; if <I>little</I> occurs nowhere in <I>big</I>, <B>strstr</B>()
     returns NULL; otherwise <B>strstr</B>() returns a pointer to the first character
     of the first occurrence of <I>little</I>.


</PRE>
<H2>SEE ALSO</H2><PRE>
     <B><A HREF="index.html">index(3)</A></B>,	<B><A HREF="memchr.html">memchr(3)</A></B>,  <B><A HREF="rindex.html">rindex(3)</A></B>,	<B><A HREF="strchr.html">strchr(3)</A></B>,  <B><A HREF="strcspn.html">strcspn(3)</A></B>,  <B><A HREF="strpbrk.html">strpbrk(3)</A></B>,
     <B><A HREF="strrchr.html">strrchr(3)</A></B>,  <B><A HREF="strsep.html">strsep(3)</A></B>,  <B><A HREF="strspn.html">strspn(3)</A></B>,  <B><A HREF="strtok.html">strtok(3)</A></B>


</PRE>
<H2>STANDARDS</H2><PRE>
     The <B>strstr</B>() function conforms to ISO 9899: 1990 (``ISO C'').

BSD				 June 4, 1993				     1
</PRE>
<HR>
<ADDRESS>
Man(1) output converted with
<a href="http://www.oac.uci.edu/indiv/ehood/man2html.html">man2html</a>
</ADDRESS>
</BODY>
</HTML>
